<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>方块练习</title>
    <style>
        #app {
            width: 300px;
            height: 300px;
            padding: 10px;
            border: 1px solid red;
        }

        a {
            width: 100px;
            height: 100px;
            text-decoration: none;
            background: pink;
            line-height: 100px;
            text-align: center;
            color: white;
            display: block;
        }

        a:hover {
            background: dodgerblue;
        }

        a:nth-of-type(2), a:nth-of-type(4) {
            position: relative;
            left: 200px;
            bottom: 100px;
        }

        a:nth-of-type(5) {
            position: relative;
            left: 100px;
            bottom: 300px;
        }
    </style>
</head>
<body>

<div id="app">
    <a href="#">链接1</a>
    <a href="#">链接2</a>
    <a href="#">链接3</a>
    <a href="#">链接4</a>
    <a href="#">链接5</a>
</div>

</body>
</html>